package com.es.www.patternforobj;

/**
 * @Created by michangtao
 * @Date 2022/5/17 13:13
 * @Description
 */
public class VoltageAdapter implements Voltage5 {

    private Voltage220 voltage220;

    public VoltageAdapter(Voltage220 voltage220) {
        this.voltage220 = voltage220;
    }


    @Override
    public void makeVoltage5() {
        voltage220.makeVoltage220();
        System.out.println("适配器转化为5v");
    }
}
